<?php if (!defined('THINK_PATH')) exit();?><div class="layui-tab-item layui-show ">

	<div class="form-item">

		<div class="layui-form-item">

			<div class="layui-input-inline wd100">

				<textarea class="layui-input" name="follow[content]" id="follow_content"></textarea>

			</div>

		</div>

		<!-- 附件上传 -->
		<div class="layui-form-item relative">

			<div class="layui-input-inline">

				<button type="button" class="layui-btn layui-btn-primary uploadFile" id="uploadFile"><i class="layui-icon"></i><?php echo L('UPLOAD_ATTACHMENTS');?></button>

				<ul id="attachments" class="attach-item mt10"></ul>

			</div>

		</div>

		<div class="layui-form-item">

			<?php if((CONTROLLER_NAME) != "Clue"): ?><div class="layui-input-inline w200 mb10">

					<select name="follow[contacter_id]">

						<option value=""><?php echo L('CONTACT');?></option>

						<?php if(is_array($contacter)): $i = 0; $__LIST__ = $contacter;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value="<?php echo ($vo["contacter_id"]); ?>" <?php if(($vo["contacter_id"]) == $customer['first_contact_id']): ?>selected<?php endif; ?>><?php echo ($vo["detail"]["name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>

					</select>

				</div><?php endif; ?>

			<div class="layui-input-inline w200 mb10">

				<select name="follow[cmncate_id]" lay-filter="getCmncateReply">

					<option value=""><?php echo L('COMMUNICATION_TYPE');?></option>

					<?php if(is_array($cmncate)): $i = 0; $__LIST__ = $cmncate;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$vo): $mod = ($i % 2 );++$i;?><option value="<?php echo ($vo["cmncate_id"]); ?>"><?php echo ($vo["cmncate_name"]); ?></option><?php endforeach; endif; else: echo "" ;endif; ?>

				</select>

			</div>

			<div class="layui-input-inline w200 mb10 hidden">

				<select name="follow[reply_id]" id="cmncate_reply" lay-filter="ReplyContent">

					<option value=""><?php echo L('CUSTOM_REPLY');?></option>



				</select>

			</div>

			<div class="layui-input-inline w200 mb10">

				<input type='text' name="follow[nextcontacttime]" class="layui-input cursor layui-form-time" id="form_contacttime" placeholder="<?php echo L('NEXT_CONTACT_TIME');?>" readonly>

			</div>

			<div class="layui-input-inline w200 mb10 savefollow">

				<input type="checkbox" name="reply" lay-skin="primary" value="1">

				<span><?php echo L('SAVE_AS_FOLLOW-UP_TEMPLATE');?></span>

			</div>

			<div class="fr">

				<div class="layui-input-inline w100 right mr0 mb10">

					<a href="javascript:" class="layui-btn layui-btn-normal submitForm createfollow"><?php echo L('ADD_RECORD');?></a>

				</div>

			</div>

			<div class="clear"></div>

		</div>

	</div>

</div>